package faceb.server.logger;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

public class MyLogger {
	private static final File logFile = new File("D:/faceb-log.txt");
	
	public static void log(String mes){
		try {
			FileOutputStream fos = new FileOutputStream(logFile,true);
			BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos,"utf-8"));
			bw.write(mes+System.lineSeparator());
			bw.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
public static void main(String[] args) {
	MyLogger.log("hi");
	MyLogger.log("hihih");
}
}
